<%@page import="uk.co.hs.web.interceptor.TabsAccessibilityInterceptor"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<%@ taglib uri="http://www.springframework.org/security/tags" prefix="security"%>

<script type="text/javascript">
$(document).ready(function(){
	if (typeof jQuery != 'undefined')
	{
	    if (jQuery.fn.jquery == '1.11.0')
	    {
	    	jQuery.widget('ui.dialog', jQuery.extend({}, jQuery.ui.dialog.prototype, {_title: function(titleBar) {titleBar.html(this.options.title || '&#160;');}}));
	    }
	}

  $.fx.speeds._default = 200;
  $("#dialogLogout").dialog({
    modal: true,
	draggable: false,
	resizable: false,
	title:'<img src="pages/images/themed/portalHeaderIcon.gif" width="12" height="12"/> &nbsp; Logout Confirmation',
	disabled:true,
	closeOnEscape: false,
	autoOpen: false,
	show:"blind",
	width:300,
	height:150,
    open: function(event, ui) {$(this).parent().children().children('.ui-dialog-titlebar-close').hide();},
    buttons: {"Confirm": function() {processLogout();},
              "Cancel": function() {$(this).dialog('close');}}
	});
});

function openLogoutDialog()
{
  $('#dialogLogout').css("display", "block").css("visibility", "visible").dialog('open');
}

function processLogout()
{
  navigateToUrl('j_spring_security_logout');
}

function openWindow(urlToOpen, windowWidth, windowHeight, winAttributes)
{
  var windowLeft = (screen.width - windowWidth) / 2;
  var windowTop = (screen.height - windowHeight) / 2;

  if (windowLeft < 0)
  {
    windowWidth = screen.width;
    windowLeft = 0;
  }
  if (windowTop < 0)
  {
    windowHeight = screen.height;
    windowTop = 0;
  }

  var win = window.open(urlToOpen, '', 'width=' + windowWidth + ', height=' + windowHeight + ', left=' + windowLeft + ', top=' + windowTop + ', ' + winAttributes);
  win.resizeTo(windowWidth, windowHeight);
  win.focus();

  return win;
}

function displayDiv(divName)
{
	$(divName).show();
}
</script>


<style type="text/css">
.menu_div {position:absolute;border-style:solid;border-width:1px;border-color:black;background-color:white;padding:5px 0 5px 5px;}
.menu_header{font-weight:bold;color:#333333;padding-bottom:10px;}
.menu_l2_header{font-weight:bold;color:#333333;text-indent:10px;padding-bottom:0px;}
.menu_link{font-weight:normal;color:#333333;}
.menu_link:HOVER{font-weight:normal;color:#551A8B;cursor:pointer;}
.menu_link_no_access{font-weight:normal;color:grey;}
.menu_item{border-top:1px solid #CDCDCD;text-indent:10px;padding-top:4px;padding-bottom:4px;}
.menu_item_no_border_top{text-indent: 10px; padding-top:4px; padding-bottom:4px;}
.menu_item_no_access_no_border_top{text-indent:10px;padding-top:4px;padding-bottom:4px;color:grey;}
.menu_item_no_access{border-top:1px solid #CDCDCD;text-indent:10px;padding-top:4px;padding-bottom:4px;color:grey;}
.menu_item_last{border-bottom:1px solid #CDCDCD;}
.menu_l2_item{border-top:1px solid #CDCDCD; text-indent: 20px; padding-top:4px; padding-bottom:4px;}
.menu_l2_item_no_border_top{text-indent: 20px; padding-top:4px; padding-bottom:4px;}
.menu_l2_item_no_access_no_border_top{text-indent:20px;padding-top:4px;padding-bottom:4px;color:grey;}
.menu_l2_item_no_access{border-top:1px solid #CDCDCD;text-indent:20px;padding-top:4px;padding-bottom:4px;color:grey;}
.menu_l2_item_last{border-bottom:1px solid #CDCDCD;}
.menu_pipe{color:#551A8B;font-size:10px;}
.menu_group{font-size:10px;color:#333333;padding:0 5px 0 5px;}
.menu_group_no_hover{font-size:10px;color:#333333;padding:0 5px 0 5px;}
.menu_group_no_access {font-size:10px;color:grey;padding:0 5px 0 5px;}
.menu_container{border-top:solid;border-width:1px;border-color:#343434;padding-top:0px;background-image:url('pages/images/degrade.gif')}
.menu_iframe{position:absolute;border:none;z-index:0;}
</style>

<div class="menu_container tabBarContainer">
   <table style="float: right;">
     <tr>
       <td class="menu_group_no_hover"><a id="clock" style="color:#551A8B;"></a></td>
       <security:authorize ifAllGranted="LOGON_NOSSO">
       <td class="menu_pipe">|</td>
       <td class="menu_group"><a onclick="openLogoutDialog();"><spring:message code="tab.logout"/></a></td>
       <td class="menu_pipe">|</td>
       </security:authorize>
     </tr>
   </table>

	<table style="float: left;">
		<tr>
		  <td class="menu_pipe">|</td>
		  <c:choose>
		  <c:when test="${tabsAccessibility.dashboardAccess}"><td class="menu_group"><a onclick="nagivateAwayFromApplicationTabs('<%=TabsAccessibilityInterceptor.DASHBOARD_URL%>');"><spring:message code="tab.dashboard"/></a></td></c:when>
		  <c:otherwise><td class="menu_group_no_access"><spring:message code="tab.dashboard"/></td></c:otherwise>
		  </c:choose>
		  <td class="menu_pipe">|</td>
		  <c:choose>
		  <c:when test="${tabsAccessibility.administrationGroupAccess}">
		  <td class="menu_group" id="administrationMenu"><spring:message code="tab.administration"/></td>
		  </c:when>
		  <c:otherwise>
		  <td class="menu_group_no_access"><spring:message code="tab.administration"/></td>
		  </c:otherwise>
		  </c:choose>
		  <td class="menu_pipe">|</td>
		  <c:choose>
		  	<c:when test="${tabsAccessibility.loaderGroupOptionAccess}">
				  <c:choose>
				  	<c:when test="${tabsAccessibility.loaderGroupAccess}"><td class="menu_group" id="loadersMenu"><spring:message code="tab.historic.loaders"/></td></c:when>
				  	<c:otherwise><td class="menu_group_no_access"><spring:message code="tab.historic.loaders"/></td></c:otherwise>
				  </c:choose>
				  <td class="menu_pipe">|</td>
			</c:when>
		  </c:choose>
		  <c:choose>
		  <c:when test="${tabsAccessibility.systemGroupAccess}"><td class="menu_group" id="systemMenu"><spring:message code="tab.system"/></td></c:when>
		  <c:otherwise><td class="menu_group_no_access"><spring:message code="tab.system"/></td></c:otherwise>
		  </c:choose>
		  <td class="menu_pipe">|</td>
		  <c:choose>
		  <c:when test="${tabsAccessibility.tabbedSearchAccess}"><td class="menu_group"><a onclick="nagivateAwayFromApplicationTabs('<%=TabsAccessibilityInterceptor.TABBED_SEARCH_URL%>');"><spring:message code="tab.search" /></a></td></c:when>
		  <c:otherwise><td class="menu_group_no_access"><spring:message code="tab.search"/></td></c:otherwise>
		  </c:choose>
		  <td class="menu_pipe">|</td>
		  <c:choose>
		  <c:when test="${tabsAccessibility.heldTransactionGroupAccess}"><td class="menu_group" id="heldTransactionMenu"><spring:message code="tab.held.transactions"/></td></c:when>
		  <c:otherwise><td class="menu_group_no_access"><spring:message code="tab.held.transactions"/></td></c:otherwise>
		  </c:choose>
		  <td class="menu_pipe">|</td>
		  <c:choose>
          <c:when test="${tabsAccessibility.reportGroupAccess}"><td class="menu_group" id="reportMenu"><spring:message code="tab.report"/></td></c:when>
          <c:otherwise><td class="menu_group_no_access"><spring:message code="tab.report"/></td></c:otherwise>
          </c:choose>
		  <td class="menu_pipe">|</td>
		  <c:choose>
          <c:when test="${tabsAccessibility.backoutGroupAccess}"><td class="menu_group" id="backoutMenu"><spring:message code="tab.backout"/></td></c:when>
          <c:otherwise><td class="menu_group_no_access"><spring:message code="tab.backout"/></td></c:otherwise>
          </c:choose>
		  <td class="menu_pipe">|</td>
		</tr>
	</table>

   <iframe id="administrationMenuSubiframe" class="no_display menu_iframe" style="width:200px;"></iframe>

   <div id="administrationMenuSub" class="menu_div no_display" style="width:200px;">
     <table style="width:100%;">
       <tr><th class="menu_header" align="left">&nbsp;<spring:message code="tab.administration.web.application"/></th></tr>
       <c:choose>
       <c:when test="${tabsAccessibility.userListAccess}">
       <tr><td class="menu_item_no_border_top"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link" onclick="nagivateAwayFromApplicationTabs('<%=TabsAccessibilityInterceptor.USER_LIST_URL%>');">&nbsp;<spring:message code="tab.administration.web.user"/></a></td></tr>
       </c:when>
       <c:otherwise>
       <tr><td class="menu_item_no_access_no_border_top"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link_no_access">&nbsp;<spring:message code="tab.administration.web.user"/></a></td></tr>
       </c:otherwise>
       </c:choose>
       <c:choose>
       <c:when test="${tabsAccessibility.roleListAccess}">
       <tr><td class="menu_item"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link" onclick="nagivateAwayFromApplicationTabs('<%=TabsAccessibilityInterceptor.ROLE_LIST_URL%>');">&nbsp;<spring:message code="tab.administration.web.role"/></a></td></tr>
       </c:when>
       <c:otherwise>
       <tr><td class="menu_item_no_access"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link_no_access">&nbsp;<spring:message code="tab.administration.web.role"/></a></td></tr>
       </c:otherwise>
       </c:choose>
       <c:choose>
       <c:when test="${tabsAccessibility.systemParameterListAccess}">
       <tr><td class="menu_item"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link" onclick="nagivateAwayFromApplicationTabs('<%=TabsAccessibilityInterceptor.SYSTEM_PARAMETER_LIST_URL%>');">&nbsp;<spring:message code="tab.administration.sys.param"/></a></td></tr>
       </c:when>
       <c:otherwise>
       <tr><td class="menu_item_no_access"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link_no_access">&nbsp;<spring:message code="tab.administration.sys.param"/></a></td></tr>
       </c:otherwise>
       </c:choose>
       <security:authorize ifAllGranted="LOGON_NOSSO">
       <c:choose>
       <c:when test="${tabsAccessibility.changePasswordAccess}">
       <tr><td class="menu_item"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link" onclick="nagivateAwayFromApplicationTabs('<%=TabsAccessibilityInterceptor.CHANGE_PASSWORD_URL%>');">&nbsp;<spring:message code="tab.administration.change.password"/></a></td></tr>
       </c:when>
       <c:otherwise>
       <tr><td class="menu_item_no_access"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link_no_access">&nbsp;<spring:message code="tab.administration.change.password"/></a></td></tr>
       </c:otherwise>
       </c:choose>
       </security:authorize>
       <c:choose>
       <c:when test="${tabsAccessibility.supportedMapListAccess}">
       <tr><td class="menu_item"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link" onclick="nagivateAwayFromApplicationTabs('<%=TabsAccessibilityInterceptor.SUPP_MAP_LIST_URL%>');">&nbsp;<spring:message code="tab.administration.sup.map.list"/></a></td></tr>
       </c:when>
       <c:otherwise>
       <tr><td class="menu_item_no_access"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link_no_access">&nbsp;<spring:message code="tab.administration.sup.map.list"/></a></td></tr>
       </c:otherwise>
       </c:choose>
       <c:choose>
       <c:when test="${tabsAccessibility.supplierMamLookupListAccess}">
       <tr><td class="menu_item"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link" onclick="nagivateAwayFromApplicationTabs('<%=TabsAccessibilityInterceptor.SUPPLIER_MAM_LOOKUP_LIST_URL%>');">&nbsp;<spring:message code="tab.administration.supplier.mam.lookup.list"/></a></td></tr>
       </c:when>
       <c:otherwise>
       <tr><td class="menu_item_no_access"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link_no_access">&nbsp;<spring:message code="tab.administration.supplier.mam.lookup.list"/></a></td></tr>
       </c:otherwise>
       </c:choose>
       <c:choose>
       <c:when test="${tabsAccessibility.supportedOwnerListAccess}">
       <tr><td class="menu_item"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link" onclick="nagivateAwayFromApplicationTabs('<%=TabsAccessibilityInterceptor.SUPPORTED_OWNER_LIST_URL%>');">&nbsp;<spring:message code="tab.administration.supported.owner.list"/></a></td></tr>
       </c:when>
       <c:otherwise>
       <tr><td class="menu_item_no_access"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link_no_access">&nbsp;<spring:message code="tab.administration.supported.owner.list"/></a></td></tr>
       </c:otherwise>
       </c:choose>
       <c:choose>
       <c:when test="${tabsAccessibility.supportedParticipantListAccess}">
       <tr><td class="menu_item"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link" onclick="nagivateAwayFromApplicationTabs('<%=TabsAccessibilityInterceptor.SUPPORTED_PARTICIPANT_LIST_URL%>');">&nbsp;<spring:message code="tab.administration.supported.participant.list"/></a></td></tr>
       </c:when>
       <c:otherwise>
       <tr><td class="menu_item_no_access"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link_no_access">&nbsp;<spring:message code="tab.administration.supported.participant.list"/></a></td></tr>
       </c:otherwise>
       </c:choose>
       <c:if test="${moduleAccessibility.faultMgmtAccess || moduleAccessibility.billingStaticAccess || moduleAccessibility.pricingAccess}">
       <c:choose>
       <c:when test="${tabsAccessibility.contractRefListAccess}">
       <tr><td class="menu_item"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link" onclick="nagivateAwayFromApplicationTabs('<%=TabsAccessibilityInterceptor.CONTRACT_REF_LIST_URL%>');">&nbsp;<spring:message code="tab.administration.contract.ref.list"/></a></td></tr>
       </c:when>
       <c:otherwise>
       <tr><td class="menu_item_no_access"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link_no_access">&nbsp;<spring:message code="tab.administration.contract.ref.list"/></a></td></tr>
       </c:otherwise>
       </c:choose>
       </c:if>
     </table>
   </div>

   <iframe id="systemMenuSubiframe" class="no_display menu_iframe" style="width:225px;"></iframe>

   <div id="systemMenuSub" class="menu_div no_display" style="width:225px;">
     <table style="width:100%;">
       <tr><td id="fileListMenuHeader" class="menu_header">&nbsp;<spring:message code="tab.system.file.list"/></td></tr>
       <c:choose>
	   <c:when test="${tabsAccessibility.fileListAccess}">
	   <tr><td class="menu_l2_item"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/>&nbsp;<a class="menu_link" onclick="nagivateAwayFromApplicationTabs('<%=TabsAccessibilityInterceptor.FILE_LIST_URL%>');">&nbsp;<spring:message code="tab.d0303s.onupds"/></a></td></tr>
	   </c:when>
	   <c:otherwise>
	   <tr><td class="menu_l2_item_no_access"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link_no_access">&nbsp;<spring:message code="tab.d0303s.onupds"/></a></td></tr>
	   </c:otherwise>
       </c:choose>
       <c:choose>
	   <c:when test="${tabsAccessibility.loaderFileListAccess}">
	   <tr><td class="menu_l2_item"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/>&nbsp;<a class="menu_link" onclick="nagivateAwayFromApplicationTabs('<%=TabsAccessibilityInterceptor.LDR_FILE_LIST_URL%>');">&nbsp;<spring:message code="tab.loaders"/></a></td></tr>
	   </c:when>
	   <c:otherwise>
	   <tr><td class="menu_l2_item_no_access"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link_no_access">&nbsp;<spring:message code="tab.loaders"/></a></td></tr>
	   </c:otherwise>
       </c:choose>
       <tr><td id="successfulTransactionListMenuHeader" class="menu_header" style="padding-top:15px;">&nbsp;<spring:message code="tab.system.successful.transaction.list"/></td></tr>
       <c:choose>
	   <c:when test="${tabsAccessibility.successfulTransactionListAccess}">
	   <tr><td class="menu_l2_item"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/>&nbsp;<a class="menu_link" onclick="nagivateAwayFromApplicationTabs('<%=TabsAccessibilityInterceptor.SUCCESSFUL_TRANSACTION_LIST_URL%>');">&nbsp;<spring:message code="tab.d0303s.onupds"/></a></td></tr>
	   </c:when>
	   <c:otherwise>
	   <tr><td class="menu_l2_item_no_access"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link_no_access">&nbsp;<spring:message code="tab.d0303s.onupds"/></a></td></tr>
	   </c:otherwise>
       </c:choose>
       <c:choose>
	   <c:when test="${tabsAccessibility.successfulLoaderTransactionListAccess}">
	   <tr><td class="menu_l2_item"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/>&nbsp;<a class="menu_link" onclick="nagivateAwayFromApplicationTabs('<%=TabsAccessibilityInterceptor.SUCCESSFUL_LDR_TRANSACTION_LIST_URL%>');">&nbsp;<spring:message code="tab.loaders"/></a></td></tr>
	   </c:when>
	   <c:otherwise>
	   <tr><td class="menu_l2_item_no_access"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link_no_access">&nbsp;<spring:message code="tab.loaders"/></a></td></tr>
	   </c:otherwise>
       </c:choose>
       <tr><td id="failedTransactionListMenuHeader" class="menu_header" style="padding-top:15px;">&nbsp;<spring:message code="tab.system.failed.transaction.list"/></td></tr>
       <c:choose>
	   <c:when test="${tabsAccessibility.failedTransactionListAccess}">
	   <tr><td class="menu_l2_item"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/>&nbsp;<a class="menu_link" onclick="nagivateAwayFromApplicationTabs('<%=TabsAccessibilityInterceptor.FAILED_TRANSACTION_LIST_URL%>');">&nbsp;<spring:message code="tab.d0303s.onupds"/></a></td></tr>
	   </c:when>
	   <c:otherwise>
	   <tr><td class="menu_l2_item_no_access"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link_no_access">&nbsp;<spring:message code="tab.d0303s.onupds"/></a></td></tr>
	   </c:otherwise>
       </c:choose>
       <c:choose>
	   <c:when test="${tabsAccessibility.failedLoaderTransactionListAccess}">
	   <tr><td class="menu_l2_item"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/>&nbsp;<a class="menu_link" onclick="nagivateAwayFromApplicationTabs('<%=TabsAccessibilityInterceptor.FAILED_LDR_TRANSACTION_LIST_URL%>');">&nbsp;<spring:message code="tab.loaders"/></a></td></tr>
	   </c:when>
	   <c:otherwise>
	   <tr><td class="menu_l2_item_no_access"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link_no_access">&nbsp;<spring:message code="tab.loaders"/></a></td></tr>
	   </c:otherwise>
       </c:choose>
       <c:choose>
	   <c:when test="${tabsAccessibility.messageListAccess}">
	   <tr><td class="menu_item_no_border_top" style="padding-top:15px;"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link" onclick="nagivateAwayFromApplicationTabs('<%=TabsAccessibilityInterceptor.MESSAGE_LIST_URL%>');">&nbsp;<spring:message code="tab.system.message.list"/></a></td></tr>
	   </c:when>
	   <c:otherwise>
	   <tr><td class="menu_item_no_access_no_border_top"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link_no_access">&nbsp;<spring:message code="tab.system.message.list"/></a></td></tr>
	   </c:otherwise>
       </c:choose>
       <c:choose>
       <c:when test="${tabsAccessibility.outstandingTaskListAccess}">
       <tr><td class="menu_item"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link" onclick="nagivateAwayFromApplicationTabs('<%=TabsAccessibilityInterceptor.OUTSTANDING_TASK_LIST%>');">&nbsp;<spring:message code="tab.system.outstanding.tasks"/></a></td></tr>
       </c:when>
       <c:otherwise>
       <tr><td class="menu_item_no_access"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link_no_access">&nbsp;<spring:message code="tab.system.outstanding.tasks"/></a></td></tr>
       </c:otherwise>
       </c:choose>

       <c:choose>
       <c:when test="${tabsAccessibility.heldTransactioByMtpntListAccess}">
       <tr><td class="menu_item"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link" onclick="nagivateAwayFromApplicationTabs('<%=TabsAccessibilityInterceptor.HELD_TRANSACTION_BY_MTPNT_LIST_URL%>');">&nbsp;<spring:message code="tab.system.held.transactions.by.mtpnt"/></a></td></tr>
       </c:when>
       <c:otherwise>
       <tr><td class="menu_item_no_access"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link_no_access">&nbsp;<spring:message code="tab.system.held.transactions.by.mtpnt"/></a></td></tr>
       </c:otherwise>
       </c:choose>

     </table>
   </div>

   <iframe id="heldTransactionMenuSubiframe" class="no_display menu_iframe" style="width:175px;"></iframe>

   <div id="heldTransactionMenuSub" class="menu_div no_display" style="width:175px;">
     <table style="width:100%;">
       <tr><th class="menu_header" align="left">&nbsp;<spring:message code="tab.held.transactions"/></th></tr>
       <c:choose>
          <c:when test="${tabsAccessibility.heldTransactionListAccess}">
            <tr><td class="menu_item_no_border_top"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link" onclick="nagivateAwayFromApplicationTabs('<%=TabsAccessibilityInterceptor.HELD_TRANSACTION_LIST_URL%>');">&nbsp;<spring:message code="tab.d0303s.onupds"/></a></td></tr>
          </c:when>
          <c:otherwise>
            <tr><td class="menu_item_no_access_no_border_top"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link_no_access">&nbsp;<spring:message code="tab.d0303s.onupds"/></a></td></tr>
          </c:otherwise>
       </c:choose>
       <c:choose>
          <c:when test="${tabsAccessibility.heldLoaderTransactionListAccess}">
            <tr><td class="menu_item"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link" onclick="nagivateAwayFromApplicationTabs('<%=TabsAccessibilityInterceptor.HELD_LDR_TRANSACTION_LIST_URL%>');">&nbsp;<spring:message code="tab.loaders"/></a></td></tr>
          </c:when>
          <c:otherwise>
            <tr><td class="menu_item_no_access"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link_no_access">&nbsp;<spring:message code="tab.loaders"/></a></td></tr>
          </c:otherwise>
       </c:choose>
     </table>
   </div>

   <iframe id="loadersMenuSubiframe" class="no_display menu_iframe" style="width:125px;"></iframe>

   <div id="loadersMenuSub" class="menu_div no_display" style="width:125px;">
     <table style="width:100%;">
       <tr><th class="menu_header" align="left">&nbsp;<spring:message code="tab.historic.loaders"/></th></tr>
       <c:choose>
       <c:when test="${tabsAccessibility.asnLoaderAccess}">
       <tr><td class="menu_item_no_border_top"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link" onclick="nagivateAwayFromApplicationTabs('<%=TabsAccessibilityInterceptor.ASN_LOADER_URL%>');">&nbsp;<spring:message code="tab.asn.loader"/></a></td></tr>
       </c:when>
       <c:otherwise>
       <tr><td class="menu_item_no_access_no_border_top"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link_no_access">&nbsp;<spring:message code="tab.asn.loader"/></a></td></tr>
       </c:otherwise>
       </c:choose>
       <c:if test="${moduleAccessibility.dualFuelAccess}">
       <c:choose>
       <c:when test="${tabsAccessibility.dualFuelLoaderAccess}">
       <tr><td class="menu_item"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link" onclick="nagivateAwayFromApplicationTabs('<%=TabsAccessibilityInterceptor.DUAL_FUEL_LOADER_URL%>');">&nbsp;<spring:message code="tab.dual.fuel.loader"/></a></td></tr>
       </c:when>
       <c:otherwise>
       <tr><td class="menu_item_no_access"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link_no_access">&nbsp;<spring:message code="tab.dual.fuel.loader"/></a></td></tr>
       </c:otherwise>
       </c:choose>
       </c:if>
       <c:if test="${moduleAccessibility.faultMgmtAccess}">
       <c:choose>
       <c:when test="${tabsAccessibility.fsnLoaderAccess}">
       <tr><td class="menu_item"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link" onclick="nagivateAwayFromApplicationTabs('<%=TabsAccessibilityInterceptor.FSN_LOADER_URL%>');">&nbsp;<spring:message code="tab.fsn.loader"/></a></td></tr>
       </c:when>
       <c:otherwise>
       <tr><td class="menu_item_no_access"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link_no_access">&nbsp;<spring:message code="tab.fsn.loader"/></a></td></tr>
       </c:otherwise>
       </c:choose>
       </c:if>
       <c:if test="${moduleAccessibility.commsHubAccess}">
       <c:choose>
       <c:when test="${tabsAccessibility.commsHubInstallLoaderAccess}">
       <tr><td class="menu_item"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link" onclick="nagivateAwayFromApplicationTabs('<%=TabsAccessibilityInterceptor.COMMS_HUB_INSTALL_LOADER_URL%>');">&nbsp;<spring:message code="tab.commshub.install.loader"/></a></td></tr>
       </c:when>
       <c:otherwise>
       <tr><td class="menu_item_no_access"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link_no_access">&nbsp;<spring:message code="tab.commshub.install.loader"/></a></td></tr>
       </c:otherwise>
       </c:choose>
       <c:choose>
       <c:when test="${tabsAccessibility.commsHubRemoveLoaderAccess}">
       <tr><td class="menu_item"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link" onclick="nagivateAwayFromApplicationTabs('<%=TabsAccessibilityInterceptor.COMMS_HUB_REMOVE_LOADER_URL%>');">&nbsp;<spring:message code="tab.commshub.remove.loader"/></a></td></tr>
       </c:when>
       <c:otherwise>
       <tr><td class="menu_item_no_access"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link_no_access">&nbsp;<spring:message code="tab.commshub.remove.loader"/></a></td></tr>
       </c:otherwise>
       </c:choose>
       </c:if>
       <c:choose>
       <c:when test="${tabsAccessibility.rsnLoaderAccess}">
       <tr><td class="menu_item"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link" onclick="nagivateAwayFromApplicationTabs('<%=TabsAccessibilityInterceptor.RSN_LOADER_URL%>');">&nbsp;<spring:message code="tab.rsn.loader"/></a></td></tr>
       </c:when>
       <c:otherwise>
       <tr><td class="menu_item_no_access"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link_no_access">&nbsp;<spring:message code="tab.rsn.loader"/></a></td></tr>
       </c:otherwise>
       </c:choose>
       <c:choose>
       <c:when test="${tabsAccessibility.ssnLoaderAccess}">
       <tr><td class="menu_item"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link" onclick="nagivateAwayFromApplicationTabs('<%=TabsAccessibilityInterceptor.SSN_LOADER_URL%>');">&nbsp;<spring:message code="tab.ssn.loader"/></a></td></tr>
       </c:when>
       <c:otherwise>
       <tr><td class="menu_item_no_access"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link_no_access">&nbsp;<spring:message code="tab.ssn.loader"/></a></td></tr>
       </c:otherwise>
       </c:choose>
     </table>
   </div>

   <iframe id="reportMenuSubiframe" class="no_display menu_iframe" style="width:175px;"></iframe>

   <div id="reportMenuSub" class="menu_div no_display" style="width:175px;">
     <table style="width:100%;">
       <tr><th class="menu_header" align="left">&nbsp;<spring:message code="tab.report"/></th></tr>
       <c:choose>
         <c:when test="${tabsAccessibility.churnReportAccess}">
          <tr><td class="menu_item_no_border_top"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link" onclick="nagivateAwayFromApplicationTabs('<%=TabsAccessibilityInterceptor.CHURN_REPORT_URL%>');">&nbsp;<spring:message code="tab.report.churn"/></a></td></tr>
         </c:when>
         <c:otherwise>
          <tr><td class="menu_item_no_access_no_border_top"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link_no_access">&nbsp;<spring:message code="tab.report.churn"/></a></td></tr>
         </c:otherwise>
       </c:choose>
       <c:choose>
         <c:when test="${tabsAccessibility.heldFlowReportAccess}">
          <tr><td class="menu_item"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link" onclick="nagivateAwayFromApplicationTabs('<%=TabsAccessibilityInterceptor.HELD_FLOW_REPORT_URL%>');">&nbsp;<spring:message code="tab.report.heldflow"/></a></td></tr>
         </c:when>
         <c:otherwise>
          <tr><td class="menu_item_no_access"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link_no_access">&nbsp;<spring:message code="tab.report.heldflow"/></a></td></tr>
         </c:otherwise>
       </c:choose>
       <c:choose>
         <c:when test="${tabsAccessibility.meterReportsAccess}">
          <tr><td class="menu_item"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link" onclick="nagivateAwayFromApplicationTabs('<%=TabsAccessibilityInterceptor.METER_REPORTS_URL%>');">&nbsp;<spring:message code="tab.report.meters"/></a></td></tr>
         </c:when>
         <c:otherwise>
          <tr><td class="menu_item_no_access"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link_no_access">&nbsp;<spring:message code="tab.report.meters"/></a></td></tr>
         </c:otherwise>
       </c:choose>
       <c:if test="${moduleAccessibility.billingStaticAccess}">
       <c:choose>
         <c:when test="${tabsAccessibility.billingReportAccess}">
          <tr><td class="menu_item"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link" onclick="nagivateAwayFromApplicationTabs('<%=TabsAccessibilityInterceptor.BILLING_REPORT_URL%>');">&nbsp;<spring:message code="tab.report.billing"/></a></td></tr>
         </c:when>
         <c:otherwise>
          <tr><td class="menu_item_no_access"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link_no_access">&nbsp;<spring:message code="tab.report.billing"/></a></td></tr>
         </c:otherwise>
       </c:choose>
       </c:if>
       <c:if test="${moduleAccessibility.faultMgmtAccess}">
       <c:choose>
         <c:when test="${tabsAccessibility.faultTrackingReportAccess}">
          <tr><td class="menu_item"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link" onclick="nagivateAwayFromApplicationTabs('<%=TabsAccessibilityInterceptor.FAULT_TRACKING_REPORT_URL%>');">&nbsp;<spring:message code="tab.report.fault.tracking"/></a></td></tr>
         </c:when>
         <c:otherwise>
          <tr><td class="menu_item_no_access"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link_no_access">&nbsp;<spring:message code="tab.report.fault.tracking"/></a></td></tr>
         </c:otherwise>
       </c:choose>
       </c:if>
     </table>
   </div>

   <iframe id="backoutMenuSubiframe" class="no_display menu_iframe" style="width:275px;"></iframe>

   <div id="backoutMenuSub" class="menu_div no_display" style="width:275px;">
     <table style="width:100%;">
       <tr><th class="menu_header" align="left">&nbsp;<spring:message code="tab.backout"/></th></tr>
       <c:choose>
         <c:when test="${tabsAccessibility.connectionBackoutAccess}">
          <tr><td class="menu_item_no_border_top"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link" onclick="nagivateAwayFromApplicationTabs('<%=TabsAccessibilityInterceptor.UTILISOFT_CONNECTION_BACKOUT_URL%>');">&nbsp;<spring:message code="tab.backout.connection"/></a></td></tr>
         </c:when>
         <c:otherwise>
          <tr><td class="menu_item_no_access_no_border_top"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link_no_access">&nbsp;<spring:message code="tab.backout.connection"/></a></td></tr>
         </c:otherwise>
       </c:choose>
       <c:choose>
         <c:when test="${tabsAccessibility.unconnectionBackoutAccess}">
          <tr><td class="menu_item"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link" onclick="nagivateAwayFromApplicationTabs('<%=TabsAccessibilityInterceptor.UTILISOFT_UNCONNECTION_BACKOUT_URL%>');">&nbsp;<spring:message code="tab.backout.unconnection"/></a></td></tr>
         </c:when>
         <c:otherwise>
          <tr><td class="menu_item_no_access"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link_no_access">&nbsp;<spring:message code="tab.backout.unconnection"/></a></td></tr>
         </c:otherwise>
       </c:choose>
       <c:choose>
         <c:when test="${tabsAccessibility.appointmentBackoutAccess}">
          <tr><td class="menu_item"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link" onclick="nagivateAwayFromApplicationTabs('<%=TabsAccessibilityInterceptor.UTILISOFT_APPOINTMENT_BACKOUT_URL%>');">&nbsp;<spring:message code="tab.backout.appointment"/></a></td></tr>
         </c:when>
         <c:otherwise>
          <tr><td class="menu_item_no_access"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link_no_access">&nbsp;<spring:message code="tab.backout.appointment"/></a></td></tr>
         </c:otherwise>
       </c:choose>
       <c:choose>
         <c:when test="${tabsAccessibility.deappointmentBackoutAccess}">
          <tr><td class="menu_item"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link" onclick="nagivateAwayFromApplicationTabs('<%=TabsAccessibilityInterceptor.UTILISOFT_DEAPPOINTMENT_BACKOUT_URL%>');">&nbsp;<spring:message code="tab.backout.deappointment"/></a></td></tr>
         </c:when>
         <c:otherwise>
          <tr><td class="menu_item_no_access"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link_no_access">&nbsp;<spring:message code="tab.backout.deappointment"/></a></td></tr>
         </c:otherwise>
       </c:choose>
       <c:choose>
         <c:when test="${tabsAccessibility.dualFuelBackoutAccess}">
          <tr><td class="menu_item"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link" onclick="nagivateAwayFromApplicationTabs('<%=TabsAccessibilityInterceptor.UTILISOFT_DUALFUEL_BACKOUT_URL%>');">&nbsp;<spring:message code="tab.backout.dualfuel"/></a></td></tr>
         </c:when>
         <c:otherwise>
          <tr><td class="menu_item_no_access"><img src="pages/images/themed/tabArrowThemed.png" width="3" height="5"/><a class="menu_link_no_access">&nbsp;<spring:message code="tab.backout.dualfuel"/></a></td></tr>
         </c:otherwise>
       </c:choose>
     </table>
   </div>

   </div>

<jsp:include page="/pages/jsp/tiles/general/logoutConfirmation.jsp"/>
